package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.AttrClass;
import cn.imvc.app.entities.GoodsClass;
import cn.imvc.app.entities.GoodsClassAttr;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface GoodsClassAttrRepository extends JpaRepository<GoodsClassAttr,Integer>,IJpqlExecutor<GoodsClassAttr>{

	List<GoodsClassAttr> getByGoodsClassAndAttrName(GoodsClass goodsClass, String attrName);

	List<GoodsClassAttr> findByGoodsClassAndAttr(GoodsClass goodsClass,AttrClass attr);

	void deleteByGoodsClassAndAttr(GoodsClass goodsClass,AttrClass attr);
}
